package o2o.task.dev;

import o2o.business.device.AppDeviceInfoBusiness;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AppDeviceTask {

    // 存储用户设备信息
    @Scheduled(cron = "20 * *  * * ? ")   //每5秒执行一次
    public void dispatchOrder() {
        // 处理设备信息
        AppDeviceInfoBusiness.doAppDeviceInfo();

        // 处理提交订单设备信息
        AppDeviceInfoBusiness.doOrderDeviceInfo();
    }

}
